package com.caiyi.financial.nirvana.sms.api;

import com.caiyi.financial.nirvana.sms.param.QueryBalanceParam;
import com.youyu.common.api.Result;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by Mario on 2017/12/19 0019.
 * 余额相关接口
 */
@FeignClient(name = "sms-frontend")
@RequestMapping("/com/caiyi/financial/nirvana/sms/api/balance")
public interface SmsBalanceApi {


    /**
     * 查询余额
     *
     * @param queryBalanceParam 请求参数
     * @return 账户余额
     */
    @ApiOperation("查询账户短信余额")
    @ApiImplicitParam(name = "param", value = "查询余额参数", required = true, dataType = "QueryBalanceParam", paramType = "body")
    @RequestMapping(value = "/query", method = RequestMethod.POST)
     Result<String> queryBalance(@RequestBody QueryBalanceParam queryBalanceParam);
}
